
import request from "@/utils/request.ts";

/**
 * 获取所有的标签信息
 */
export const getAllTagsUrl = () => {
    return request({
        url: '/blog/tags/all',
        method: 'get',
    })
}
/**
 * 获取文章分类列表
 *
 * @param params
 * @param params.pageNum
 * @param params.pageSize
 * @param params.categoryName
 * @returns
 */
export function getTagsListUrl(params: any) {
    return request({
        url: '/blog/tags/list',
        method: 'get',
        params: params
    })
}



export function updateTagsUrl(data: any) {
    return request({
        url: '/blog/tags/update',
        method: 'put',
        data: data
    })
}
export function addTagsUrl(data: any) {
    return request({
        url: '/blog/tags/add',
        method: 'post',
        data: data
    })
}

export function deleteTagsUrl(params: any) {
    return request({
        url: '/blog/tags/remove',
        method: 'delete',
        params: params
    })
}
